package com.whu.service;

import com.whu.pojo.Commodity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface CommodityServiceInterface {

    List<Commodity> findAll();

    Commodity findById(Long id);

    List<Commodity> findByName(String commodityName);

    void save(Commodity commodity);

    void deleteById(Long id);
}
